package com.example.tasksmcpserver.repository;

import com.example.tasksmcpserver.entity.Task;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TaskRepository extends JpaRepository<Task, Long> {
    // 根据名称查找任务
    List<Task> findByNameContainingIgnoreCase(String name);

    // 根据类别查找任务
    List<Task> findByCategoryIgnoreCase(String category);
} 